// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.costAccounting.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.JoinField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * CarryFcorwardConfigProduct
 */
@Data
@TableName(value = "carry_fcorward_config_product", autoResultMap = true)
@Schema(title = "结转配置子表")
public class CarryFcorwardConfigProduct implements Serializable {

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 主表id
   */
  @TableField(value = "`carry_fcorward_config_id`")
  @JoinField(CarryFcorwardConfig.class)
  @Schema(title = "主表id")
  private Long carryFcorwardConfigId;

  /**
   * 出入库类型1 入 2 出
   */
  @TableField(value = "`type`")
  @Schema(title = "出入库类型1 入 2 出")
  private Integer type;

  /**
   * 查询sql
   */
  @TableField(value = "`select_sql`")
  @Schema(title = "查询sql")
  private String selectSql;
}
